package com.qf.game;

public class Battle05 {
    public static void main(String[] args) {
        //创建一个长剑对象
        LongSword longSword = new LongSword();
        longSword.setName("湖中之月");
        longSword.setDamage(200);
        longSword.setBaojixishu(0.5);
        Hero hero = new Hero();
        hero.setPower(30);
        hero.setWeapon(longSword);
        for (int i=0;i<5;i++){
            hero.attack();
        }

    }
}
